There's some issues involving the use of array literals - they get allocated on the heap for no clear reason. Create a version of your vector constructor that uses four floats, then call that instead in your line 324.