how average is calculated in cricket