finishes GeneralizedBinaryPattern cpp
adds gbp python method