Changing double array to int array. Aim is to reduce the size of persistent data structure.