Added correlation phase of cascade-correlation algorithm.

The isFinished method in AbstractAlgorithm had to be made non-final
as Mockito can't override final methods. The alternative is to use
PowerMock that can aparently deal with this, but draws in another
dependency.