Update pqDistances.java