writing reflectbounds, going to change it to more pythonic
implement new reflect bounds code

based on numpy.where() function
finishing this out, still some bugs