Added taskNoDependencies function for getting tasks with no dependencies