A Fast Active Quenching and Recharging Circuit for Single-Photon Avalanche diodes