SGM: add C LSAP implementation from clue package