removed legacy scramble code. Use im_phasescramble or im_wmpscramble from plotting repo instead
now supports nd matrices
functions for data binning according to linear separation or bin size
initialise empty struct
useful logging function for controlling verbosity across code
moving average
radian difference between two vectors