The creation of this software is documented at https://rlc.vlinder.ca/blog/2015/11/06/interesting-modifications-to-the-lamport-queue
This is basically the implementation of the modifications described by Nhat Minh Le et al., re-described and explained in the blog article referenced above.