improve watershed, fix grid.cu (device memory leak, block width)