haven't dealt with the data
simpson integral
linear recursion to iterative