new_weights_matrix function

Constructor for weights_matrix class object