bug fix
Bug fix, and added unit test in findIndex
included TestFindIndex in tests
rewritten contractDelta so that it can handle tensors hidden in functions. Defined global dim
defined global variable 'dim'
Bug Fix