changes and addition of getFloydPath method.