read write lock added
"moreThenHalfAppearedElement" method added.