Red Harvest and I have discussed the whole Triplex Acies in his thread about the early roman troops. And indeed it involved the Samnites.

Remember that the Romans didn't just come out of the phalanx with the perfect manipular legion, it changed and adapted and conformed until it was best at what the Romans it to be best at. But it doesn't change the fact that the Romans had copied it.