added notes on big O notation
added time complexity