'find_cells' subroutine
'get_acc_mod' subroutine - optimization