strlen implementation, everything else commented