Finished zfuncs
Add inserting into array manually (w/o vectors)