for loop pre-increment optimization's and a slight syntax style change
add cmake gitignores