Additional performance related to #2711

Mathematical operations extracted to own class. I used the quick modulo in the encoder part as well. Now the [UUID benchmark](https://github.com/hazelcast/hazelcast/pull/2711#issuecomment-45983255) looks like this:

Before (on 2d9c8bd63d61b3b0efe4450774cbe37f023be2bf)
Benchmark                                             Mode   Samples         Mean   Mean error    Units
c.h.n.UTFEncoderDecoderBenchmark.testUuidUtilTest    thrpt        40  1350822.556    22437.135    ops/s

After (this PR)
Benchmark                                             Mode   Samples         Mean   Mean error    Units
c.h.n.UTFEncoderDecoderBenchmark.testUuidUtilTest    thrpt        40  1694053.879    20132.232    ops/s
What about 0? :)