An inexact algorithm for the sequential ordering problem