Converting from base two to base ten