The Logic Behind Search Engine Optimization Techniques