An exhaustive search method to find all small solutions of a multivariate modular linear equation