What do you mean?
You believe in something, but I don’t believe you and programing isn’t belief! 
Your tests [on ideone] are very very weak.
BTW
Can you answer [explain] why your program give:
6 and 8
for
a1 h8
and
h8 a1
?? --> https://ideone.com/oansal <–
Do you think than from h8 to a1 is littel longer then from a1 to h8 ? 