Add example of how to programmatically create COOMatrix

See #23.