Refactoring of code and added pyramid primitive

* Created function for creating geometry from array of vertices and
faces
* Added pyramid geometry (uncommented)