added two fuctions
Merge pull request #1 from DexterV/adam

added two fuctions