Updated old code for lookup-table search. Added 'new_lookup' and 'lut_search' functions.