Add normalize_transform; uses lillietest to determine best fitting transform