[glHelper] huge code simplification in fixed main
[common] created IndexList template class