implementation for SLIC algorithm