Bayesian Matrix Decomposition and Applications