Diophantus of Alexandria: A Study in the History of Greek Algebra