Map of coordiantes and find a path between coordinates in a matrix.