Added sliceAndDice algorithm