Changed searchByField in class ContactList to use switch statement.
Implemented search functionality.