refactor package to gsl/blas