full comparison stage is performed to test the algorithm - it works fine!!