implemented BhattacharyyaTransform