extremely inefficient bash attempt at recursion and palendrome search