Finished julia implementation for coeffgenv2. GOES FAST WOOHOO