Update LabClosest.java

computations moved to map