add unique_elements in java src (NC)