Tree and Map objects now use arrays and the algorithm is much faster.