Code rearrangement and some basic codes

Added basic data structure based codes and rearranged some already
existing codes.