Fixed warnings on 64bit compilation
Edited ToDo-s
Added verification to never use an unallocated bucket
Added a few optimizations