What's the best way to optimize inner loops--any good tutorials on this subject?