Recursive implementation of simpsons rule.