Correcting The Slic

I'm correcting the slic implementation and adding some tests