Windowing

Windowing function and implemented a triangle window function.