adding code to measure algorithm time