Create demo.c

A demo to show how to use the API of bit map generator on data visualization.