implemented [].lastIndexOf