Implemented shuffle with lstsq