Algorithm storage and computation