Improved comparison algorithm
binPow as bound function