using std::max_element instead of a loop... might be too ugly tho
reorganizing, moving towards simpler dir structure and C++ build integration with django