double[][] to int[][]