Started implementation of sparle functions.
More complete functional implementation, lacks slicing.