spatialDecompose.m can now "run" with a serious bug

The binning of r should be an ensemble average that sample the whole trajectory.
But I only used the first frame.