Fixed problem with to many indexes, changed concat to array.copy
Also fixed memory issue, copied too much memory to the videocard