Solved binary to decimal converter