Fix insert, delete and naming on functions for sptrees.

Also added fold.