Initial commit of functions for MDL/NYC analysis