Could you provide a JavaDoc explaining the reason for this class, as well as potentially a link to a source that describes the algorithm?