[ring] add ring library and basic unit test.