Completed set_parameters_for_encoding function.

This function defines all of the submatrices that will be needed during encoding.