constant time comparison

finally addresses #7