how to find mode of discrete probability distribution