Add algorithm for converting real number in custom base represented as string to double type. Move some math methods to CustomMath class