Optimal Sample Size Selection for Torusity Estimation Using a PSO Based Neural Network