Systolic arrays for path-finding problems