Added basic mask functionality and tests in neighborhood_arrfunc