Solution of the PY and HNC equations in two dimensions