add in hillClimbing & astar functions into core class