solves integrals using monte-carlo methos