Use linked list with custom class

A bit faster