Implement search. Closes #24.