update code to run lap and parallelize multiple runs/k to get average