For an 8 number sliding puzzle, solve in matlab using DFS, BFS, Uniform cost, and A*