An algorithm on integer solutions to quadratic programming problems with bounded decision variables