 Usage:  {xb, yb} = bindata (x, d, orig {,y})  
 
 Input:

  x                      m x n x d1 x ... x dn array 
                         
  d                      n x 1 x d1 x ... x dn array 
                         
  orig                   n x 1 x d1 x ... x dn array 
                         
  y                      m x p x d1 x ... x dn array 
                         
 Output:

  xb                     l x n x d1 x ... x dn array, the indices of the bins into which the 
                         
  yb                     l x (p+1) x d1 x ... x dn array 
                         
--------------------------------------------------------------
(C) MD*TECH Method and Data Technologies, 17.8.2000
