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

This example has been resurrected based on an old example by Ville.
Merge pull request #458 from pooya/naive_bayes

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