Implemented bootstrapping levmar minimizer. There's a double free error somewhere...