Removed most of STL usage