Lovasz theta function, SVMs and Finding Dense Subgraphs