Pull-Request for bugfix

The calculation of row and column index back from a linear index
failed because of a mix-up in the functions. See git log for more details.

Thanks for this fantastic library!! :+1: