practice in writing algorithms in python scripts while restudying the book "introduction to algorithms"