Linear Indexing Machines