Extracted & polished utils from alg I & alg II courses