Added test cases for isEmpty and size methods.
Implemented isEmpty and size methods.