added stride and atom_indices to binpos