A local and dynamic algorithm for reconfiguring a faulty processor array into a maximal fault-free subarray