Fixed a bug

in both by and sort, we need to order or group by expr
Let the regressions accept array as independent variable
Corrected a typo in print doc