Added intializer_list constructor and resize method.