Added sequence slicing/partitioning implementation.