Sorted binary2decimal method. Still need to do decimal2binary.