Added buggy implementations of searches.

Need to check edge cases for cdrs on empty lists.
Also seem to be some dict look up errors in some cases (maybe related to the
previous point).