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