Change Chunk Coordinates function

Implemented mathematical mod function for chunk coordinates so negative
world coordinates resolve correctly to chunk coordinates.

Fixes #4.