started dfdk, added VecSqMedium function because I have to form psisq in multiple places