Revert "Use an external library for smartfile and vector"

This reverts commit a65af79e12afc8bf01bd895b0e82d6d33ee8ef5f.