What are the function of restriction enzymes in nature?