Tensor product scheme for computing bound states of the quantum mechanical three-body problem