Improved error message when dimension mismath in fits reading.
Added vec_t::pitch().
Added linfit_pack().
Improved performances of linfit(), added error messages for checks in matrix multiplications.
Fixed bug in generate_img().