citing the paper where this algorithm is described
added a method to calculate a power of ten using big decimals
corrected version of 10^power method
working implementation of logToProb for arbitrary number of classes