Implementation of the parallel QP algorithm by Brand et al.