Examples on different programming styles using a sparse vector as example.