Added errors for when input vectors for binning functions don't have same dimensions