Improvement to compute.avg.by.subject.and.activity() and verification
with compute.avg.by.subject.and.activity.alternative()