migrating to oct-tree algo

mainly unit tests