exercises from my algorithms' class