Maintenance on IRIP code

-Added IRIP2 design C code + associated R changes
-Introduced an IRIPCrosses variable
-Fixed bug in IRIP1 C code - mathematical error