refactoring - moving patterns
fixed neighbourhood adding
Pair class
added neighbourhood