everything is now working.
fromt he original isomap website, a small-scale test set
tidying up