optimized createHanningWindow

```
                       Name of Test                          plain     cool      cool   
                                                                                  vs    
                                                                                plain   
                                                                              (x-factor)
CreateHanningWindow::CreateHanningWindowFixture::640x480   30.205 ms 0.755 ms   39.99   
CreateHanningWindow::CreateHanningWindowFixture::1920x1080 95.448 ms 4.180 ms   22.83  
```