add -funroll-loops flag to hopefully improve performance