Implement vertex array objects

Should speed things up a lot