Put hashin into algorithm