Added quadratic shape function changes for computing node distances -