moved bigramcalculation to corpus