starting on SAP.java
fixed a bug in distance method of WordNet class