Added simple slice algorithm impl