Fix type B generator
Change benchmark code.

This change introduces a new way to benchmark an
algorithm.

./benchmark algo_index{nk,merge,mom,quick} k{1=5,2=log,3=sqrt,4=n/2} type{1=A,2=B} instance_number