Update Sliding window max.java