Added Majid's Algorithm

Added Majid's Algorithm to the simulation and also added executable
script.