added clearly arranged heuristic search