A solution for finding the shortest path between two chess squares for a knight piece