Added copyright notice for two methods copied from an external library