Let's use this opportunity for some enhancement of vectors.

1. Use a `Vec` to store the probability distribution.
2. Add a `largestDimension()` method to `Vec` that returns the index of the largest element of the vector.
3. Make this method much simpler using that new code :)