added thinning function Guo-Hall and function for transformations between Bitmap <-> bool[,]