Solving 1.2

Solved row major array representation problem