Move Generation with Perfect Hash Functions
Concrete Mathematics A Foundation For Computer Science