Got rid of C-pointers, and moved to C++14 (to be able to declare lambda parameters with auto)