method to infer selection and Ne from genetic time series data