Implemented auto-covert bases when switching input mode.
Add tests for Input switching & base-conversion
Remember which InputMode was selected when switching between Horizontal / Vertical