test algorithms program