If there is a missing mate, do not crash.  Add support for optional arguments in sliding_window_tree