I have implemented the new algorithm for an elliptic curve which will compute 2p,4p,8p,16p,32p........ . i want the flow of code which will use the new algorithm to compute p,2p,4p,8p,16p........... . and store it into array so that i will use it for scalar multiplication.