https://fortran.codingforstudent.com/3-secrets-to-one-way-two-way-and-repeated-measures-designs/