Search way - algorithm to search the fastest way on 2d-map Written for php or javascript.