complete sobsel's sequence
debugged sobseq.c