def the abstract class for LR

the abstract class is used for single thread lr model and the parallel
version
add a parallel version LR's roughly architecture