Made the scan code cleaner and faster (but longer)
Merge branch 'label3d' of https://github.com/matejak/scikit-image into label3d
Fixed bugs