made a little faster by changing import statements

Change the import statements, which when tested seemed to save approximate 60 ns per function call per loop iteration, which depending on the size of the loops adds up (1e8 means a minute or so saved)