Octree: improve performance by removing intermediate vectors

Also removes vector-based prim storage
Merge pull request #14 from infinityb/master

Octree: improve performance by removing intermediate vectors