Started writing documentation for primal-dual

It is incomplete, so far.
Started working on documentation for primal-dual

It remains to add some mathematical justifications.