Implemented built-in __len__ and __contains__ functions
This allows use of the membership operator "in", and len()