A low latency and accurate procedure for sine-wave frequency estimation