Added curse of dimensionality code