MiniMac protocol online phase with the exension and modifications from http://eprint.iacr.org/2014/289