Add total_weight attribute to PrototypeDTW