Protein folding evolved in knotty puzzle