Implements Newton's method for cube roots