Initial checkin of spm sort example, not yet compiling or fully ported