bounded_niche function

define niche from boundaries