add checkEqual, removeDuplicate Elements method