added refine and refineTree to HashOctree (provided by Peter)