Update computePaths.m