Sorting implemented. Still very messy,
Oops. Removed /lib from git.
Handled some problems with sort input.
Updated gitignore.
Removed .idea directory
Removed lib directory from git tracking.