add trait method injection
moved matrix package into fp