Move ring math code to riak_core_ring_util