basic algos in comp sci