Replace array by SplStack in DataCollector

Close #11