Similar Items: Lifting to tensors when compiling scientific computing workloads for AI Engines