Tweaked Q/columns positioning algorithm