find collisions with arbitrary k values