Faster coordinate convertation to array index
Merge pull request #2 from ensirius/patch-1

Thanks for the improval,
your commit is now pulled.