Implements a logarithmic reduction Fortran routine and the associated test

Merge request reports