Made project() inline
Converting PatchTracker
Adding solver functions from Theia