Adding each and map overloaded functions with index

Fixed #20