Optimized code: Added BufferObject struct and made shader bind attrib location