Diagonal values are set to Zero instead of Integer.maxValue