fix a syntax error
Unroll loops in search(k): Upto 4% speed up.