Replaced the comparison algorithm with another one
Added test for case with  partial matching but long number