How to avoid hash collision. It uses polynomial hash code and a compress method.