added code and tests for remaining grid search directions (ddl, ddr, dul, dur)