Added run time analysis, please review it