add member function size, empty and clear