implemented basic lastIndexOf method