FOLDBIN folds n-D data into phase bins and generates a folded data
set containing the bin means (weighted if required) and standard
deviations, also the chi-squared fit to a constant level.
NOTE: If axis zero is defined then this must be
incorporated in the phase zero epoch.
NOTE: The program will run quickest if the
time axis is the first axis.