Library of optimized inner loops
