Fixed SPM pointers, initial working SPM sort examples