Statistics: renamed some variables

* Statistics: renamed some variables:
  * sinlge precision  datas, means -> data, mean
  * double precision  datad, mediand -> data_d, median_d
Statistics: added functions mean() and mean_sp()

* Statistics: added functions mean() and mean_sp():
  * returns the mean of an array