Please see the main and header files for the  LogitGRO algorithm and software package.