Highly optimized MATLAB implementation of dynamic network prediction framework