use parakeet reshuffle, fix 2d bfs bugs
move compilation code to forest class