Implement sine oscillator