* implemented second thresholding method: cut away levels of same tf at the beginning and end of the index (per doc)