list files implementation in C++