A-Star search algorithm implementation. (C)