Converts a trinary number to decimal