Vector Projection onto a Line — Coding problem | OneNoughtOne