Code in multiple languages to calculate the Surprise of the partition of a network into communities