Added a binary object bounding box finder.
Added an additional optional parameter to the resample() function to controll the border treatment.
Registration of the binary object finder of two commits ago.
Improved the algorithm and remove bugs.