get_variance_node function

Get variance matrix of a node