stats functions: added mode

example: 

***select mode(score) from events***

returns the list of values  that occurs with the greatest frequency

see #2624