Various algo implementations to study for Quals