static instead of pointer
fixed memory leaks; working vertices count
fixed memory leaks
deleted binary