Fixed edges cases in grid graph
Added balanced binary tree generator