replaced while loop by integer arithmetics in CPU minimum image
replaced while loop by integer arithmetics in CPU minimum image

this prevents infinite loops when one of the coordinates gets too large

joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue