Updated 3d code

* Added index buffer & use draw indexed
* changed triangle to cube