Added Tuple3 and Comparators. Test for creating indexes.