add some javadoc to test helper
implement isAscending using Comparable type
implement swap for Comparables