Extract cube to primitives

Cube creation is moved to its own Primitives class.

* moved cube creation (vertices, normals, indexes) to 
* introduces a namespace helper function for easier adding classes in namespaces