Replaced this-> references in List class for g++