An attempt to make math-related routines in hadoop java-api a bit more light