octal: Adopt functional style

As discussed in #79.

The original Octal.to_decimal method is replaced by the parse_octal
function which seems more aptly named.