Made code compatible with GLM 0.9.5...
GLM doesn't support some operations on integer vectors
Fixed length() errors
Use glm::value_ptr() to obtain a pointer to the underlying data