Added tests for subtoind and indtosub using arrays instead of RDDs
Added function to check if RDD