tree now gets built correctly when number of particles < bucket (leaf) size