problem 5: alg 1 w/o benchnmark