check function searchContemporariesBottomUp, there is a bug