Added linear regression performance test

Added new functions for linear regression performance tests and a script under test/R/dev-test to show how to use those new functions.