Reimplemented prepare_latest, parallel_lookup and  quorum_lookup

Now all this lookups have common base