add constant time compare function to mitigate timing attacks
Merge pull request #2 from allenp/constant-time-comparison

add constant time compare function to mitigate timing attacks