An efficient parallel algorithm for the all pairs shortest path problem using processor arrays with reconfigurable bus systems