Update slow-hash.c

1. Various optimizations for faster hashing performance.