added two utility method to convert integer array to double array