Refactor / cleanup, and fix small bug in #4

Refactored all code for problems #1 - #20:

- changed Run() to main()
- added println to print output directly from program
- added a timer to measure execution time
- changed tabs to spaces
- fixed a small bug in #4