working towards better object system

* added mesh
* added mesh generation function (for cube)
* fixed quad tree code