Adds first version of q4 self-reduction algo.