A* Numbrix implementation