Abdul Qadeer Khan , a chief architect of Pakistan 's nuclear arms program who went on to establish the world 's largest atomic black market , sold the secrets of how to make centrifuges for enriching uranium to Libya , Iran and North Korea .