Implemented TPD embedding and added a random test comparing SPD with TPD order and TPD embedding with SPD order§