Added code built into graphlab. Deleted the old non-working code.