made rotation functions more generic for horizontal and vertical flip
made rotation functions more generic for horizontal and vertical flip

mpicbg-scicomp/tissue_miner,mpicbg-scicomp/tissue_miner,mpicbg-scicomp/tissue_miner