Efficiant version and unit tests

replacing power(2,x)+... with pre-calculated ints (should use marcos)
adding efficent 64bit xor and and functions.
Python implementation to test broken test vector
unit tests