implement fast point multiplication with precomputation