Instead of classical wave algorithm try to implement infinite/loop list to avoid useless memory allocation