add new map implementation for BFS