reverted AlgorithmCore::compare to known stable version