Generalized Riemann integral