Turned all the variables into volatile which are shared in the interrupt routine and with that of the loop().
volatile unsigned long prevValue , currValue; //Addup = 0;//, Addup_2 = 16777215;// commented out functions use them!
volatile long differential;
volatile float startTime, endTime;
volatile boolean checkBUTTON;
volatile int counter;
also changed all the arrays to type unsigned int 32 bit because anyways the 24bits are used to 32 bitter int needs to be used.
I have the MemoryFree library installed! shall I check the ram usage?
I THINk long is half as light as compared to u_int32 so switching back