Initial checkin for local min/max filter

Same here (`size_t` and space).