Implemented Hamming window function.