Uhm, sorry. It's okay now. Somebody helped me figure it out. It seems I forgot that the array size will end at column deg-1 so I had to increase my size by 1.