Principal Curves in High Dimensions