working on syncfinder_astar
fix bug in grid covert 2d array to buf
fix bug in grid.bufFrom2DArray