Add a projection to the probability simplex, and a test for it.

Useful for implementing gradient projection type algorithms on the probability simplex.