Implemented iterator functions for List