David suggested changes, use Vector.valuesIterator where possible instead of .toArray to reduce copying
.
PadRight first try
UFunc not working because of double implicits, will switch to trait CanXXX pattern.
changed to trait CanPad.scala; bugs padding DV => DM (i.e. 2 dimensions specified)
Basta for now, ask for comments