Made scalar versions of all the window functions. This will allow better integration of the window functions in a devectorized loop.