Debounce and throttle function decorators