Some input rearranging for top-down.
Pass around pointers instead of copies of maps.
Some memory management.
Turn off switching to sequential after 5 levels of parallelism for now.