Boundary element analysis in plasticity and mathematical programming