updaing big-o-notaion
updating data structure