add algorithm test

add test class and result