Create all_pairs_pattern.py

This is the class definition. The two main methods are the init_step and the comparison.

Method comparison implements the algorithm that need to run between all couples of elements in the set.

Method init_step does any preliminary processing that may be needed.