seq: implement some functions

Currently, functions except for I/O are implemented.
sample: add sequencer function sample.

$ cd root-of-this-repository
$ ./autogen.sh
$ ./configure
$ make
$ ./sample/run.sh