add signal extensions

See issue https://github.com/JuliaDSP/Roadmap/issues/7
The code was shorter than I expected so I think it is better to merge than to create a separate package.
There is additionally an option to apply windows to the extended range to smooth the edges.