A Hierarchically Pipelined Data Acquisition System For Single-Photon Avalanche Diode Array