add Triplets_ac.java