Removed GSL dependencies

Hi Matias, 
I've removed the deps on GSL by using a nice piece of c code in 'sysmat'.
Cheers,
Tom