fixed broken vcache
implementation of distance substitution kernel
test case added