vectorize boundaries()
put some protection against too large pixel values in boundaries()
otherwise FPE is generated
update the doctests
Merge pull request #130 from segasai/boundaries_vector

vectorize boundaries