added CIR

forgot to add code I wrote earlier, going to work on traveling salesman
and have it in asap.