Finalized new retarget algo. @todo : Testing on testnet, run tests, edit makefiles"