changes to Linreg: Flag system implemented

This is to prevent using same data over and over again