Trapizoidal rule for Integration