A Tutorial on Formulating and Using QUBO Models