Algorithms implemented for graphlab