Ap node construction solved theoretically. Need to do it on the simulator. Must send Ap nodes to p to calculate alpha_denom