Completed code for dimensionality reduction, clusterers and ANN