add baseline fortran implementation