Examples: Add a naive-bayes implementation with map-reduce.

This example has been resurrected based on an old example by Ville.