Regulation of heterochromatin by histone methylation and small RNAs