BUGFIX: gapImpute was comparing wrong vector lengths to assess whether it is possible to use function