Added javadoc for algorithm classes