fmt + add quick select alg