answered questions
added big O notation