Updated function to load external data and test function to match algorithm interface
Updated function to load external data and test function to match algorithm interface