A treatise of algebra, both historical and practical