Algorithms for the Multiplication Table Problem