Added replacement methods for [[ and $

Also started extraction method [

Started methods for Arith and Compare