Fixed a bug in crossValidate module
Fixed path to loop structures
fix bug in loop module
add codes to deal with nan in correlation calcualtion