Search engine for Lists in Java