Major changes in solver without pq
changes core and pythin wrapper. Added python demo