Making Distinct Core implementation source code