CAPRI implementation

Added CAPRI algorithm and refactory