This version of code works bubut values are stored bytewise instead of bitwise in storage_arr[].