Local Algorithms For Classic Graph Problems