Added javadoc for BaseSort.