Implemented railfence plain to cipher method