-- Added algorithms to get elements diagonally from bottom left to top right
-- Implemented sequential pattern matcher