Applied the previous commit to euler0046.cpp
Completely rewrote euler0046.py to speed it up by more than an order of
magnitude while also removing the dependency on bitvector.py
Fixed a bug in eulerlib.cpp