Computing 2-D min, median, and max filters | Synapse