Added the astar search
added the code for cornersProb