added subroutine to get the subset of points close to each box. not planning to use it
at the moment.