GARLIC: GAmma Reconstruction at a LInear Collider experiment