Done things

Added inline to some functions.
Added set_integral, set_functional, append_integral and
append_fractional functions to modify the internal value.
The internal number format can be set in the template arguments, default
is long long.