Renamed Base to BasicFunctions so I could use Base in gaussnewton