Streaming linear regression for medium-sized data