My implementation of some fundamental algorithms using scala language