Local principal curve methods