FASTER VERSION AS COMPARED TO EARLIER COMMIT
SOME SMART PIECE OF CODE TO CALCULATE v.w...
MORE TO COME...
LATER...