In chess the knight moves in the strangest way of all the pieces. It goes two squares in one direction and then one square at a right angle to that direction. The picture below shows every square a knight can reach in a single move.

Because of this movement rule, the shortest path between two squares is hard to count by eye. Write a program that computes the minimum number of moves a knight needs to travel from one square to another. The chessboard has 8 rows and 8 columns, and in standard notation the columns are written with the letters a to h.
