Implemented the allMatch method.
Implemented the anyMatch method