Hardware Accelerator for Star Centroiding