fix test code in data structure2 and fix realize code