Shape Indexing Using Relational Vectors and Neural Networks