Efficient Algorithms for the Bee-Identification Problem