Replicating Cooktorr specular with Cycles vectors, almost there, but why vector is twisted? I'm trying to replicate material shading from Blender Internal in Cycles, so long I managed to get Diffuse working correctly with Point Lights, a rather awkward but working sunlight/hemi node setup, even a Specular shading similar to Blender Internal's Blinn.

But Cooktor Specular is not working out, I mean it's almost there, it kind of works, but for some reason my vector seem twisted away from the light source, making the final results, while rotating, to look really weird, here a picture to show the problem, also the node setup I'm using for that Specular in case someone want to replicate it. What I'm doing wrong? Or how do I replicate Cooktorr behavior correctly?
Alright I found the issue, after reading the following observation about Cooktorr in blender dev:

https://developer.blender.org/T34564

I learned that Blender Internal Cooktorr was actually Blinn-Phong, so I reviewed the math of it and figured out which vector I had misplaced, I leave a picture with the solution, also the link to the math, for reference.

https://en.wikipedia.org/wiki/Blinn%E2%80%93Phong_shading_model