adds modulo operator to math util lib

This seems useful as it's all over the isometric code.