Added BubbleSort algorithm.
Improved window layout.
Removed some duplicated code.
Added a few unit tests.