Fixed matrix multiplication, no seg faults anymore