Added more functions to GridMap class