Patterns for knitted hats