r308: added a new API to convert region to CIGAR

and an example program demonstrating how to do single-end alignment in <50
lines of C code.