Added method doubleSize() and worked on method put()