appendPattern function

Append a PTPattern to a PTModule