The code is in python for this algorithm
The code is free for anyone to copy and use...The copied code must have the same code and indentation as above