benchmarking added for measuring time using rubys benchmark lib