Use correct index order. rows,cols not reverse

Spotted-by: berak <px1704@web.de>
GitHub: github issue #11
Merge pull request #13 from sthalik/master

Use correct index order. rows,cols not reverse