pls_fit function

Unified PLS fit with auto backend and selectable algorithm