Fixed bottomup. Seems to be working properly. Deals with smaller datasets very well.