A fast readout algorithm for Cluster Counting/Timing drift chambers on a FPGA board