Added "RemoveDuplicates" static method.