Finished linear regression slope and fft.  Change the order of previous value--the smaller index the newer the value