The above algorithm was formulated and implemented during the duration of the practical training. However, the BSP routine could not be incorporated into the code due to lack of time. Thus, the implemented code requires the output from the BSP routine as its input.