Added compiled algorithm, fix imports