Implemented method to remove duplicates without buffer