added threshold array to cythresh
Merge branch 'optimise-pythresh' of https://github.com/gjcoombes/banks into optimise-pythresh