Base52 url shortener perfect hash function in C | Hacker News Reader