adding time complexity notes