Fixing a bug in the comparator
The comaprator was sign-extending operands irrespective of whether the comparison is signed or unsigned