created a generic concatenation method used by NIZKP.  Will have to be
updated later