Copy old code
Start my own version
implement ComputeHalfSpeed() function for ordinary case (not border)