A treatise on algebra