Perl module implementing lin CR, for use with apply_cr.pl