Added function correlation()

* Added function correlation():
  * computes the normalised correlation [-1,1] between two data series
BUGFIX: use proper rouding off in time2string