Changing scaling of differential data. Previously it was creating an NxN matrix where N is the number of samples retreived. This caused it to lag badly and crash the computer on a Windows 8 Matlab 2012 machine. Changed so that it is using a more efficient way to replace values.