changed getMorphInDirection of DataFlowomponent so that it accepts a vector for the direction