added a test for tuple sorting in c++