Implemented resize() non-const interface