Chi square distance impl in progress.