Multi-Pass Algorithms for finding heavy elements in database