move logic to sort and extract swap and compare to method
rename method to isGreaterThan and move assignment
change Object to Integer and rename argument
change type in method swap
remove elementLength
Merge pull request #34 from wingyplus/extract_method

Change argument and return type, rename argument