An algorithm for indefinite integer quadratic programming